scaleXY
Type
property
Summary
Sets both horizontal and vertical scaling of an object by adjusting width and height together
Syntax
set the scaleXY of object to <number>[%]
Description
Use the scaleXY property to scale an object both horizontally and vertically by the same amount, either in pixels or as a percentage of its current dimensions. This property can only be set, getting the value will return empty.
When set, it adjusts the object by updating both width and height relative to their current values.
Examples
# Increase width and height by 100 pixels
set the scaleXY of btn "MyButton" to 100
# Increase both dimensions by half their current size
set the scaleXY of btn "MyButton" to "50%"
Compatibility and Support
OS
mac
windows
linux
ios
android
Platforms
desktop
mobile
web